﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace eCompany.Forms
{
    public partial class splashForm : Form
    {
        private string m_loadLabel = "";

        public splashForm()
        {
            InitializeComponent();
            this.Icon = pics.eCompanyIcon;

#if DEBUG
            versionLabel.Text = Application.ProductVersion.ToString() + " Debug";
#else
            versionLabel.Text = Application.ProductVersion.ToString();
#endif
            loadingLabel.Text = m_loadLabel;
        }

        public void setLoadingLabel(string label)
        {
            m_loadLabel = label;
        }

        public void updateLoadingLabel(string labelext)
        {
            loadingLabel.Text = m_loadLabel + " : " + labelext;
            this.Refresh();
        }

        public void updateLoadingLabel()
        {
            loadingLabel.Text = m_loadLabel;
            this.Refresh();
        }
    }
}
